home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 May: Tool Chest / Dev.CD May 98 TC.toast / Tool Chest / Development Kits / HyperCard Related / APDA HyperCard Toolkits / HyperCard Serial Toolkit 2.6 / Source Code / SPortVersion.p < prev    next >
Encoding:
Text File  |  1995-02-07  |  1.1 KB  |  53 lines  |  [TEXT/MPS ]

  1. (*
  2.     SPortVersion() -- Return the current version as a list consisting of the
  3.         version and the date of that version.
  4.  
  5.     To compile and link this file using Macintosh Programmer's Workshop,
  6.  
  7.         pascal -w SPortVersion.p
  8.         link -m ENTRYPOINT -o HyperCommands -rt XFCN=7035 -sn Main=SPortVersion ∂
  9.             SPortVersion.p.o "{MPW}"Libraries:Libraries:HyperXLib.o
  10.  
  11.     © Copyright 1987,88,89,90 by Apple Computer, Inc.
  12.  
  13.     Initial coding 9/87 by Harry R. Chesley.
  14. *)
  15.  
  16. {$R-}
  17.  
  18. {$S SPortVersion }     { Segment name must be the same as the command name. }
  19.  
  20. unit DummyUnit;
  21.  
  22. interface
  23.  
  24. uses MemTypes, QuickDraw, OSIntf, HyperXCmd;
  25.  
  26. procedure EntryPoint(paramPtr: XCmdPtr);
  27.     
  28. implementation
  29.  
  30. procedure SPortVersion(paramPtr: XCmdPtr); forward;
  31.  
  32. procedure EntryPoint(paramPtr: XCmdPtr);
  33.  
  34.     begin
  35.         SPortVersion(paramPtr);
  36.     end;
  37.  
  38. procedure SPortVersion(paramPtr: XCmdPtr);
  39.  
  40.     procedure Fail(errMsg: Str255); { set theResult and quit }
  41.         begin
  42.             paramPtr^.returnValue := PasToZero(paramPtr,errMsg);
  43.             exit(SPortVersion);
  44.         end;
  45.  
  46.     begin
  47.         if paramPtr^.paramCount <> 0 then Fail('parameter count is not 0');
  48.  
  49.         paramPtr^.returnValue := PasToZero(paramPtr,'2.6,2/19/90')
  50.     end;
  51.  
  52. end.
  53.